package cn.wolfcode.fegin;

import cn.wolfcode.common.web.Result;
import cn.wolfcode.domain.Product;
import cn.wolfcode.domain.SeckillProductVo;
import cn.wolfcode.fegin.fallback.ProductFeginApiFeginFallback;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author: 普发忠
 * @Date: 2021/11/09/15:21
 */

@FeignClient(name = "product-service",fallback = ProductFeginApiFeginFallback.class)
public interface ProductFeginApi {
    @RequestMapping("/product/queryProductByIds")
    Result<List<Product>> queryProductByIds(@RequestParam ArrayList<Long> longs);
    
    @RequestMapping("/product/queryProductById")
    Result<Product> queryProductById(@RequestParam Long productId);
}
